﻿
@{
    ViewBag.Title = "增加城市";
    Layout = "~/Areas/Admin/Views/Shared/_AdminLayout.cshtml";
}

<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-lg-10">
        <h2>基础管理</h2>
        <ol class="breadcrumb">
            <li>
                <a href="index.html">后台管理</a>
            </li>
            <li>
                <a>基础管理</a>
            </li>
            <li>
                <a href="/Admin/Foundation/AddCity">增加城市</a>
            </li>
        </ol>
    </div>
</div>

<div class="wrapper wrapper-content  animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-title">
                    <h5>城市增加 <small><a href="/Admin/Foundation/City">城市管理</a></small></h5>
                </div>
                <div class="ibox-content">
                    @using (Html.BeginForm("AddCity", "Foundation", FormMethod.Post, new { id = "frmAddCity", @class = "form-horizontal" }))
                    {
                        @Html.AntiForgeryToken()
                        <div class="form-group">
                            <label class="col-sm-2 control-label">省份</label>
                            <div class="col-sm-10">
                                <select class="form-control w-2" name="ProvinceID">
                                    @foreach (var item in ViewBag.Provinces)
                                    {
                                        <option value="@item.ID">@item.ProvinceName</option>
                                    }
                                </select>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">城市名称</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" placeholder="城市名称" name="CityName">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-2">
                                <button class="btn btn-primary" type="submit">保存内容</button>
                                <button class="btn btn-white" type="reset">重置</button>
                            </div>
                            <span class="help-block m-b-none">@Html.ValidationSummary(true)</span>
                        </div>
                    }
                </div>
            </div>
        </div>
    </div>
</div>




